import asyncio


async def func01():
    print('func01---1')
    # await asyncio.sleep(2)
    print('func01---2')


async def func02():
    print('func02---1')
    # await asyncio.sleep(2)
    print('func02---2')


tasks = [
    asyncio.ensure_future(func01()),
    asyncio.ensure_future(func02())
]

loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait(tasks))
"""
结果：
func01---1
func02---1
func01---2
func02---2
"""
